package org.springblade.oa.feign;

import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(
	value = AppConstant.APPLICATION_NAME_PREFIX + "oa",
	fallback = IStatisticsClientFallback.class
)
public interface IStatisticsClient {
	String API_PREFIX = "/statistics";

	@GetMapping(API_PREFIX + "/getCostByProjectId")
	R<Map<String,String>> getCostByProjectId(@RequestParam("projectCode") String projectCode);



}
